package com.qianda.qdminiapp.domain.model.activity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包金额详情
 * </p>
 *
 * @author cw
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdRedpacketAmtDetail extends Model<QqdRedpacketAmtDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 红包活动id
     */
    private Long redpacketId;

    /**
     * 锁定用户id(锁定状态下)
     */
    private Long userId;

    /**
     * 金额
     */
    private BigDecimal amt;

    /**
     * 锁定状态  0：未锁定   1:已锁定
     */
    private Integer lockStatus;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
